package com.atguigu.guli.service.trade.controller.test;

import com.atguigu.guli.common.base.result.R;
import com.atguigu.guli.service.trade.util.WeixinPayProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author luodiab
 * @Date 2022/11/9 19:56
 */
@RestController
@RefreshScope
@RequestMapping("/admin/trade/test")
public class ConnectController {

    @Autowired
    private WeixinPayProperties weixinPayProperties;

    @GetMapping("test1")
    public R test1(){
        return R.ok().data("weixinPayProperties", weixinPayProperties);
    }
}
